package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.PowerBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Set;

@Mapper
public interface IPowerMapper extends BaseMapper<PowerBean> {

    Set<PowerBean> findByItem(Integer[] roles);

    Set<PowerBean> findByRole(Integer id);

    Set<PowerBean> findByUser(Integer id);
}
